import http from '@/assets/js/http';

// 获取我的积分
export const getScore = (data) => {
  return http.post('/apiv2/user/score', data);
}

// 获取我的收藏
export const getCollect = (data) => {
  return http.post('/apiv2/user/myCollect', data);
}

// 获取我的作品
export const workList = (data) => {
  return http.post('/apiv2/user/modelList', data);
}

// 获取我的点赞
export const getLike = (data) => {
  return http.post('/apiv2/user/myLike', data);
}

// 获取我的学生
export const getStudent = (data) => {
  return http.post('/apiv2/user/myStudent', data);
}

// 获取学生作品
export const myStudentModel = (data) => {
  return http.post('/apiv2/user/myStudentModel', data);
}

//发送积分
export const sendScore = (data) => http.post(`/apiv2/user/sendScore`, data);

// 获取用户信息
export const queryUerInfo = (data) => {
  return http.post('/apiv2/user/info', data);
}

//更新用户信息
export const updateInfo = (data) => http.post(`/apiv2/user/updateInfo`, data);
